import 'package:flutter/material.dart';

class ExpandCase extends StatelessWidget {
  const ExpandCase({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Container(
      width: double.infinity,
      height: double.infinity,
      color: Colors.pink,
      alignment: Alignment.topCenter,
      child: SizedBox(
        height: 200,
        child: Padding(
          padding:const EdgeInsets.all(10),
          child: Row(children: [
            // ClipRRect圆角裁剪
            ClipRRect(
              borderRadius: BorderRadius.circular(10),
              child: Image.network(
                "https://img2.baidu.com/it/u=1666858871,666753767&fm=253&fmt=auto&app=120&f=JPEG?w=800&h=962",
              ),
            ),
           const SizedBox(
              width: 10,
            ),
            Expanded(child:ClipRRect(
              borderRadius: BorderRadius.circular(10),
              child: Container( color:Colors.blue),
            ))
          ]),
        ),
      ),
    );
  }
}
